-- GENERATED SPELL FOR [Darkheart] --


function spell0_24246(pUnit, Event) --@Psychic Wail,Self--
pUnit:FullCastSpellOnTarget(43590,pUnit)
pUnit:RegisterEvent('Sorts_24246', 2325, 1)
end

function Sorts_24246(pUnit, Event)
local choix_sorts_24246 = math.random(0, 0)
if choix_sorts_24246 == 0 then
pUnit:RegisterEvent('spell0_24246', 1, 1)
end
end

function mob24246_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24246', math.random(1500, 3000), 1)
end

function mob24246_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24246_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24246_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24246, 1, 'mob24246_Action')
RegisterUnitEvent(24246, 2, 'mob24246_Leave')
RegisterUnitEvent(24246, 3, 'mob24246_Kill')
RegisterUnitEvent(24246, 4, 'mob24246_Die')
